FROM python:3.8-slim-buster

MAINTAINER fengwei

ENV TZ "Asia/Shanghai"

RUN apt-get update && apt-get install -y procps

# 安装vim编辑器
RUN apt-get update && apt-get install -y vim

ADD . /root/app

ADD requirements.txt requirements.txt

RUN pip config set --user global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip config set --user install.trusted-host https://pypi.tuna.tsinghua.edu.cn

RUN pip install --upgrade pip
RUN ["pip", "install", "-r", "requirements.txt"]

RUN mkdir -p /root/logs

WORKDIR /root/app

RUN  chmod +x start.sh

ENTRYPOINT ["./start.sh"]






